<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<script type="text/javascript">
    $(function() {
        $("#jvForm").validate();
    });
</script>
</head>
<body onload="previewImg(1);">

<div class="body-box">
    <#include "/jeecms_sys/head.html"/>
    <#include "/common/image_upload.html"/>
    <#include "/common/alert_message.html"/>

<#assign usernameExist><@s.m "error.usernameExist"/></#assign>
<@p.form id="jvForm" action="o_update.do" labelWidth="12"  onsubmit="return submint_validate()">
<@p.text colspan="1" width="45" label="活动标题" name="title" id="title" required="true"  value="${cmsInfo.title}"/>
<@p.text colspan="1" width="45" label="发布人" name="publisher" readonly="true" value="${cmsInfo.publisher.username!}"/><@p.tr/>
<@p.select colspan="2" label="shopInfo.shopName" name="shopId"  list=listShop listKey="id" listValue="shopName" class="required" required="true"/><@p.tr/>
<!-- 上传图片 -->
<@p.td label="标题图" colspan="1" width="50" noHeight="true">
<@p.text id="uploadImgPath1" name="titlePicURL" value=cmsInfo.titleImage style="width:220px" class="required"  required="true"/>
<!--  <input type="button" value="<@s.m "imageupload.preview"/>" onclick="previewImg(1);" class="preview-button"/> --><br/>
<span id="ufc1" style="position:relative">
<input type='text' id='uploadFileText1' size="14"/>  
<input class="browse" type='button' value='<@s.m "global.browse"/>'/>
<input onchange="$('#uploadFileText1').val(this.value)" size="14" type="file" id="uploadFile1" class="file-button"/>
</span>
<label><input type="checkbox" onclick="$('#mark1').val(this.checked);"/><@s.m "imageupload.mark"/></label>
<input type="hidden" id="mark1" value="false"/> <input type="button" value="<@s.m "imageupload.upload"/>" onclick="upload(1);" class="upload-button"/><br/>
<@s.m "global.width"/>: <input type="text" id="zoomWidth1" value="100" size="5"/>
<@s.m "global.height"/>: <input type="text" id="zoomHeight1" value="70" size="5"/> 
<input type="button" value="<@s.m "imageupload.cut"/>" onclick="imgCut(1);" class="cut-button"/>
<input type="hidden" name="relationId" value="${relationId!}"/>
<input type="hidden" name="id" value="${cmsInfo.id}"/>
</@p.td>
<@p.td colspan="1" width="50">
<img id="preImg1" alt="<@s.m "imageupload.preview"/>" style="width:100px;height:70px;background-color:#CCCCCC;border:1px solid #333"/>
</@p.td><@p.tr/>
<!-- 图片end -->
<@p.text colspan="1" width="45" label="创建时间" name="publishTime" readonly="true" value="${cmsInfo.createTime!}"/>
<@p.radio colspan="1"  width="45" label="发布类型" name="publishType" value="${cmsInfo.indexType}" list={"1":"首页轮播","2","首页推荐"} required="false"/><@p.tr/>
<@p.text colspan="1" width="45" label="轮播位置" name="orderNum" value="${cmsInfo.orderNum}"/>
<@p.text colspan="1" width="45" label="页面URL" readonly="true" name="cmsPath" value="${cmsInfo.cmsPath}"/><@p.tr/>

<@p.editor value="" colspan="2" label="活动说明" name="description" value="${cmsInfo.simpleContent!}"/><@p.tr/>
<@p.td colspan="2"><@p.submit code="global.submit" /> &nbsp; <@p.reset code="global.reset"/></@p.td>
</@p.form>
</div>
</body>
</html>